package com.core.life.dao;

import java.util.List;
import java.util.Map;

import com.core.common.dao.IBaseDao;
import com.core.common.dao.Pager;
import com.core.life.entity.ConsumeRecordEntity;

public interface IConsumeRecordDao extends IBaseDao<ConsumeRecordEntity>{

	void deleteByIds(List<Long> ids);

	void deleteByConsumeItemIds(List<Long> itemIds);
	
	Pager<ConsumeRecordEntity> selectByOption(int pageIndex, int pageSize, 
			String sort, String order,Map<String, Object> optionMap);

	List<ConsumeRecordEntity> selectByYearAndMonth(Integer year, Integer month);
	
	List<ConsumeRecordEntity> selectByYearAndMonthAndConsumeUserIds(Integer year, Integer month, String consumeUserIds);

	List<Long> selectIdsByYearAndMonthAndConsumeUserIds(Integer year, Integer month,
	        String consumeUserIds);

    List<Object[]> selectSumByIds(List<Long> ids);

}
